<?php
namespace Home\Controller;
use Think\Controller;
use Common\Library\Page;
class ProductController extends Controller{
	private $Model;
	function _initialize(){
			$this->Model=D('Product');
		}
	public function index($category_id=0){
		$filter_data=array();
		if($category_id) $filter_data['category_id']=(int)$category_id;
		$count=$this->Model->getCount($filter_data);
		$Page=new Page($count,C('HOME_PAGE_LIMIT',null,24));
		$Page->setConfig('header',L('page_header'));
		$Page->setConfig('theme',L('page_theme'));
		
	}
	public function detail($product_id){
		
	}
}